package com.ttj.domain.oracle.gen;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderOutstockDetailCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer mysqlOffset;

    protected Integer mysqlLength;

    public OrderOutstockDetailCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlOffset(Integer mysqlOffset) {
        this.mysqlOffset=mysqlOffset;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlOffset() {
        return mysqlOffset;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlLength(Integer mysqlLength) {
        this.mysqlLength=mysqlLength;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlLength() {
        return mysqlLength;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("ORDER_ID is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("ORDER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("ORDER_ID =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("ORDER_ID <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("ORDER_ID >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ORDER_ID >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("ORDER_ID <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("ORDER_ID <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("ORDER_ID in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("ORDER_ID not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("ORDER_ID between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ORDER_ID not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andGIdIsNull() {
            addCriterion("G_ID is null");
            return (Criteria) this;
        }

        public Criteria andGIdIsNotNull() {
            addCriterion("G_ID is not null");
            return (Criteria) this;
        }

        public Criteria andGIdEqualTo(Integer value) {
            addCriterion("G_ID =", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotEqualTo(Integer value) {
            addCriterion("G_ID <>", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThan(Integer value) {
            addCriterion("G_ID >", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("G_ID >=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThan(Integer value) {
            addCriterion("G_ID <", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThanOrEqualTo(Integer value) {
            addCriterion("G_ID <=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdIn(List<Integer> values) {
            addCriterion("G_ID in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotIn(List<Integer> values) {
            addCriterion("G_ID not in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdBetween(Integer value1, Integer value2) {
            addCriterion("G_ID between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotBetween(Integer value1, Integer value2) {
            addCriterion("G_ID not between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andNumIsNull() {
            addCriterion("NUM is null");
            return (Criteria) this;
        }

        public Criteria andNumIsNotNull() {
            addCriterion("NUM is not null");
            return (Criteria) this;
        }

        public Criteria andNumEqualTo(Integer value) {
            addCriterion("NUM =", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotEqualTo(Integer value) {
            addCriterion("NUM <>", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThan(Integer value) {
            addCriterion("NUM >", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("NUM >=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThan(Integer value) {
            addCriterion("NUM <", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThanOrEqualTo(Integer value) {
            addCriterion("NUM <=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumIn(List<Integer> values) {
            addCriterion("NUM in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotIn(List<Integer> values) {
            addCriterion("NUM not in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumBetween(Integer value1, Integer value2) {
            addCriterion("NUM between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotBetween(Integer value1, Integer value2) {
            addCriterion("NUM not between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andStockIdIsNull() {
            addCriterion("STOCK_ID is null");
            return (Criteria) this;
        }

        public Criteria andStockIdIsNotNull() {
            addCriterion("STOCK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStockIdEqualTo(Integer value) {
            addCriterion("STOCK_ID =", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotEqualTo(Integer value) {
            addCriterion("STOCK_ID <>", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThan(Integer value) {
            addCriterion("STOCK_ID >", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ID >=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThan(Integer value) {
            addCriterion("STOCK_ID <", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ID <=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdIn(List<Integer> values) {
            addCriterion("STOCK_ID in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotIn(List<Integer> values) {
            addCriterion("STOCK_ID not in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ID between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ID not between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andOutIdIsNull() {
            addCriterion("OUT_ID is null");
            return (Criteria) this;
        }

        public Criteria andOutIdIsNotNull() {
            addCriterion("OUT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOutIdEqualTo(Integer value) {
            addCriterion("OUT_ID =", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotEqualTo(Integer value) {
            addCriterion("OUT_ID <>", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThan(Integer value) {
            addCriterion("OUT_ID >", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("OUT_ID >=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThan(Integer value) {
            addCriterion("OUT_ID <", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThanOrEqualTo(Integer value) {
            addCriterion("OUT_ID <=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdIn(List<Integer> values) {
            addCriterion("OUT_ID in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotIn(List<Integer> values) {
            addCriterion("OUT_ID not in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdBetween(Integer value1, Integer value2) {
            addCriterion("OUT_ID between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotBetween(Integer value1, Integer value2) {
            addCriterion("OUT_ID not between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andOdStatusIsNull() {
            addCriterion("OD_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andOdStatusIsNotNull() {
            addCriterion("OD_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andOdStatusEqualTo(Integer value) {
            addCriterion("OD_STATUS =", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusNotEqualTo(Integer value) {
            addCriterion("OD_STATUS <>", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusGreaterThan(Integer value) {
            addCriterion("OD_STATUS >", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("OD_STATUS >=", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusLessThan(Integer value) {
            addCriterion("OD_STATUS <", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusLessThanOrEqualTo(Integer value) {
            addCriterion("OD_STATUS <=", value, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusIn(List<Integer> values) {
            addCriterion("OD_STATUS in", values, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusNotIn(List<Integer> values) {
            addCriterion("OD_STATUS not in", values, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusBetween(Integer value1, Integer value2) {
            addCriterion("OD_STATUS between", value1, value2, "odStatus");
            return (Criteria) this;
        }

        public Criteria andOdStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("OD_STATUS not between", value1, value2, "odStatus");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateIsNull() {
            addCriterion("QUHUO_STATE is null");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateIsNotNull() {
            addCriterion("QUHUO_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateEqualTo(Integer value) {
            addCriterion("QUHUO_STATE =", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateNotEqualTo(Integer value) {
            addCriterion("QUHUO_STATE <>", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateGreaterThan(Integer value) {
            addCriterion("QUHUO_STATE >", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("QUHUO_STATE >=", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateLessThan(Integer value) {
            addCriterion("QUHUO_STATE <", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateLessThanOrEqualTo(Integer value) {
            addCriterion("QUHUO_STATE <=", value, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateIn(List<Integer> values) {
            addCriterion("QUHUO_STATE in", values, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateNotIn(List<Integer> values) {
            addCriterion("QUHUO_STATE not in", values, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateBetween(Integer value1, Integer value2) {
            addCriterion("QUHUO_STATE between", value1, value2, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoStateNotBetween(Integer value1, Integer value2) {
            addCriterion("QUHUO_STATE not between", value1, value2, "quhuoState");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonIsNull() {
            addCriterion("QUHUO_PERSON is null");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonIsNotNull() {
            addCriterion("QUHUO_PERSON is not null");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonEqualTo(String value) {
            addCriterion("QUHUO_PERSON =", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonNotEqualTo(String value) {
            addCriterion("QUHUO_PERSON <>", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonGreaterThan(String value) {
            addCriterion("QUHUO_PERSON >", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonGreaterThanOrEqualTo(String value) {
            addCriterion("QUHUO_PERSON >=", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonLessThan(String value) {
            addCriterion("QUHUO_PERSON <", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonLessThanOrEqualTo(String value) {
            addCriterion("QUHUO_PERSON <=", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonLike(String value) {
            addCriterion("QUHUO_PERSON like", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonNotLike(String value) {
            addCriterion("QUHUO_PERSON not like", value, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonIn(List<String> values) {
            addCriterion("QUHUO_PERSON in", values, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonNotIn(List<String> values) {
            addCriterion("QUHUO_PERSON not in", values, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonBetween(String value1, String value2) {
            addCriterion("QUHUO_PERSON between", value1, value2, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoPersonNotBetween(String value1, String value2) {
            addCriterion("QUHUO_PERSON not between", value1, value2, "quhuoPerson");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeIsNull() {
            addCriterion("QUHUO_TIME is null");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeIsNotNull() {
            addCriterion("QUHUO_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeEqualTo(Date value) {
            addCriterion("QUHUO_TIME =", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeNotEqualTo(Date value) {
            addCriterion("QUHUO_TIME <>", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeGreaterThan(Date value) {
            addCriterion("QUHUO_TIME >", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("QUHUO_TIME >=", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeLessThan(Date value) {
            addCriterion("QUHUO_TIME <", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeLessThanOrEqualTo(Date value) {
            addCriterion("QUHUO_TIME <=", value, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeIn(List<Date> values) {
            addCriterion("QUHUO_TIME in", values, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeNotIn(List<Date> values) {
            addCriterion("QUHUO_TIME not in", values, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeBetween(Date value1, Date value2) {
            addCriterion("QUHUO_TIME between", value1, value2, "quhuoTime");
            return (Criteria) this;
        }

        public Criteria andQuhuoTimeNotBetween(Date value1, Date value2) {
            addCriterion("QUHUO_TIME not between", value1, value2, "quhuoTime");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table ORDER_OUTSTOCK_DETAIL
     *
     * @mbg.generated do_not_delete_during_merge Wed Jul 12 08:41:20 CST 2017
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}